import turtle

def draw_regular_polygon(n, length):
    # 计算正n边形的外角
    angle = 360 / n
    for _ in range(n):
        turtle.forward(length)
        turtle.right(angle)

# 输入边数和边长
n = int(input("请输入正多边形的边数："))
length = int(input("请输入正多边形的边长："))

# 绘制正多边形
draw_regular_polygon(n, length)
turtle.done()